
// 获取地址栏参数
var object = {};
var str = location.href; //取得整个地址栏
var num = str.indexOf("?")
str = str.substr(num + 1); //取得所有参数   stringvar.substr(start [, length ]
var arr = str.split("&"); //各个参数放到数组里
console.log(arr)
for(var i = 0; i < arr.length; i++) {　　　　
	object[arr[i].split("=")[0]] = arr[i].split("=")[1]　　
}
$.ajax({
		type: "POST",
		url: "https://www.900yeah.com/api/Orderdetailed/recruitment",
		dataType: "json",
		data: {
			"id": object.id,
			"mobile": object.mobile,
			"logistics":object.logistics
		},
		success: function(res) {
			console.log(res);
			var item = res.result;
			var data = res.result.list;
			console.log(data)
			var str = '';
			var str_n = "";
			str +='<div class="logistics_title">'
				str +='<span>' + '运单编号：' + item.logistics + '</span>'
				str +='<span>' + '国内承运人：' + '德邦快递' + '</span>'
				str +='<span>' + '国内承运人电话：' + '<span style="color:#4D88FF ;">' + item.mobile + '</span>' + '</span>'
			str +='</div>'
			str +='<div class="logistics_list">'
			$.each(data, function(i, u) {
				str +='<div class="logistics_for">'
					str +='<img src="https://www.900yeah.com/static/Api/images/Oval.png"/>'
					str +='<div>'
						str +='<p>' + u.AcceptStation +'</p>'
						str +='<p>' + u.AcceptTime + '</p>'
					str +='</div>'
				str +='</div>'
			})
			str +='</div>'
			
			$(".logistics").html("");
			$(".logistics").append(str);
		},
		error: function(res) {
			console.log(res)
		}
	});